
<body>
    <div class="modal fade bs-example-modal-sm" id="GetQRCode" tabindex="-1" role="dialog" >
        <div class="modal-dialog modal-sm" style="width:255px;">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title" id="exampleModalLabel" style="text-align:center;">取货二维码</h4>
                </div>
                <div class="modal-body">
                    <input type="hidden" id="cancel_id" name="cancel_id"/>
                    <div class="row">
                        <div id="QRCode"></div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" style="display:block; margin:0 auto">关闭</button>
                </div>
            </div>
        </div>
    </div>
</body>
<script>
    function GetQRCode(d) {
        if(d){
            var h = '<img src="?md=shop&cl=shop&at=TakeQRCode&id='+d+'" alt="">';
            $("#QRCode").html(h);
        }
    }
</script>